/*
 * @Author: jjjjwei 1506865174@qq.com
 * @Date: 2022-08-16 14:32:38
 * @LastEditors: Xia_cc 978487464@qq.com
 * @LastEditTime: 2022-08-17 11:52:22
 * @FilePath: \bpm-management-system\src\component\examinemanage\wofaqideshenpi\Myaction.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react'

export default function Myaction(propos) {
    const bianji = ()=>{
        propos.fun()
    }

    const tijiao = ()=>{
        propos.showModal(propos.id)
    }
    const del = ()=>{
        propos.delshowModal(propos.id)
    }
    if(propos.state==='草稿'){
        return (
            <div>
                <span className='action' onClick={bianji}>编辑</span>
                <span className='action' onClick={tijiao}>提交</span>
                <span className='action' onClick={del}>删除</span>
                <span className='action'>详情</span>
            </div>
          )
    }
    if(propos.state==='审核拒绝'){
        return (
            <div>
                <span className='action'>编辑</span>
                <span className='action' onClick={del}>删除</span>
                <span className='action'>详情</span>
            </div>
          )
    }
    if(propos.disposeState==='待审核'){
        return (
            <div>
                <span className='action'>审核</span>
            </div>
          )
    }
    return (
        <div>
            <span className='action'>详情</span>
        </div>
      )
 
}
